package com.xyoto.community.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Author: 廖振辉
 * Date: 2021/12/3
 * Description: 动态统计量
 */
@Data
public class DynamicStatistic {

    @ApiModelProperty("动态id")
    private Integer dynamicId;

    @ApiModelProperty("点赞数")
    private Integer loveCount;

    @ApiModelProperty("评论数")
    private Integer commentCount;

    @ApiModelProperty("转发数")
    private Integer forwardCount;

    public DynamicStatistic() {
        this.loveCount = 0;
        this.commentCount = 0;
        this.forwardCount = 0;
    }

    public DynamicStatistic(Integer dynamicId, Integer loveCount, Integer commentCount, Integer forwardCount) {
        this.dynamicId = dynamicId;
        this.loveCount = loveCount;
        this.commentCount = commentCount;
        this.forwardCount = forwardCount;
    }
}
